PREFIX=/share/calatisiad-project/calatisiad-linux/output
CC = gcc

calatisiad : libabs-appfwk.o
	$(CC) -shared -Wl,-soname,libabs-appfwk.so -o libabs-appfwk.so libabs-appfwk.o `pkg-config glib-2.0 elementary --cflags --libs`
	mv ./libabs-appfwk.so ${PREFIX}/usr/lib 
	rm ./libabs-appfwk.o
	cp ./include/libabs-appfwk.h ${PREFIX}/usr/include
	cp ./abs-appfwk.pc ${PREFIX}/usr/lib/pkgconfig
libabs-appfwk.o : libabs-appfwk.c
	$(CC) -c libabs-appfwk.c `pkg-config glib-2.0 elementary --cflags --libs`
clean :
	rm ./*.o
	rm ${PREFIX}/usr/include/libabs-appfwk.h
	rm ${PREFIX}/usr/lib/libabs-appfwk.so 
	rm ${PREFIX}/usr/lib/pkgconfig/abs-appfwk.pc
